<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:80:"/data/wwwroot/luckyDraw/m/public/../application/single_draw/view/jihuo/index.php";i:1498788619;}*/ ?>
<!DOCTYPE html>
<html>
<head lang="en">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="viewport"
          content="initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width">
    <title>联票激活</title>
    <link href="<?php echo \think\Config::get('singleDraw'); ?>/css/style.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div class="contain">
    <img src="<?php echo \think\Config::get('singleDraw'); ?>/images/gy.png" class="jh-bg">
    <ul style="display:none;">
        <li>
            <span><img src="<?php echo \think\Config::get('singleDraw'); ?>/images/phone.png"></span>
            <input type="text" value="手机号码" onfocus="if(value=='手机号码') value='';" onblur="if(value=='') value='手机号码';"/>
        </li>
        <li>
            <span><img src="<?php echo \think\Config::get('singleDraw'); ?>/images/yzm.png"></span>
            <input type="text" value="验证码" onfocus="if(value=='验证码') value='';" onblur="if(value=='') value='验证码';"/>
            <a href="#">获取验证码</a>
        </li>
        <li>
            <span><img src="<?php echo \think\Config::get('singleDraw'); ?>/images/xlh.png"></span>
            <input type="text" value="输入电影票上的序列号" onfocus="if(value=='输入电影票上的序列号') value='';" onblur="if(value=='') value='输入电影票上的序列号';"/>
            <sup></sup>
        </li>
        <li class="next" onClick="window.location.href='index-jp.html'">下一步</li>
    </ul>
    <ul>
        <form method="post" action="<?php echo url('jihuo/jihuo'); ?>">
        <li style="margin-bottom:0.32rem;">
            <span><img src="<?php echo \think\Config::get('singleDraw'); ?>/images/xlh.png"></span>
            <input type="text" name="ulianpiaono" id="ulianpiaono" value="" placeholder="输入电影票上的序列号" />
            <sup></sup>
        </li>
        <li class="next" onClick="return comfire();">下一步</li>
        </form>
    </ul>
</div>
</body>
<script>
    new function () {
        var _self = this;
        _self.width = 750;//设置默认最大宽度
        _self.fontSize = 100;//默认字体大小
        _self.widthProportion = function () {
            var p = document.getElementsByTagName("html")[0].offsetWidth / _self.width;
            return p > 1 ? 1 : p;
        };
        _self.changePage = function () {
            document.getElementsByTagName("html")[0].setAttribute("style", "font-size:" + _self.widthProportion() * _self.fontSize + "px !important");
        };
        _self.changePage();
        window.addEventListener("resize", function () {
            _self.changePage();
        }, false);
    };
</script>
<script>
    function comfire() {
        if($('#ulianpiaono').val().length >= 12){
            $('form').submit();
            return ;
        }else{
            alert('联票号错误,请核查!');
        }
        return false;
    }
</script>
<script src="<?php echo \think\Config::get('singleDraw'); ?>/js/jquery-1.7.2.min.js" type="text/javascript"></script>
</html>